package com.xhai.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xhai.common.domain.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 权限表
 * </p>
 *
 * @author xhai
 * @since 2025-05-24
 */
@Getter
@Setter
@ToString
@TableName("sys_perm")
@Schema(name = "SysPerm", description = "权限表")
public class SysPerm extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 权限ID
     */
    @Schema(description = "权限ID")
    @TableId(value = "PERM_ID", type = IdType.ASSIGN_ID)
    private Long permId;

    /**
     * 权限编码
     */
    @TableField("PERM_CODE")
    @Schema(description = "权限编码")
    private String permCode;

    /**
     * 权限名称
     */
    @TableField("PERM_NAME")
    @Schema(description = "权限名称")
    private String permName;

    /**
     * 备注
     */
    @TableField("REMARK")
    @Schema(description = "备注")
    private String remark;

    /**
     * 显示顺序
     */
    @TableField("ORDER_NUM")
    @Schema(description = "显示顺序")
    private Integer orderNum;

    /**
     * 请求地址
     */
    @TableField("URL")
    @Schema(description = "请求地址")
    private String url;

    /**
     * 打开方式（menuItem当前页签，menuBlank新窗口）
     */
    @TableField("OPEN_TARGET")
    @Schema(description = "打开方式（menuItem当前页签，menuBlank新窗口）")
    private String openTarget;
}
